package com.gaoxiang.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class DataController {
    @GetMapping("/name")
    public List<String> method(){
        List<String> list = new ArrayList<>();
        list.add("Gaoxiang");
        list.add("Gaohua");
        list.add("Gaoming");
        return list;
    }
}
